package co.yixiang.huiMin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 购物车表
 * </p>
 *
 * @author Author
 * @since 2020-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("yx_store_cart")
public class YxStoreCart implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 购物车表ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Integer uid;

    /**
     * 类型
     */
    private String type;

    /**
     * 商品ID
     */
    private Integer productId;

    /**
     * 商品属性
     */
    private String productAttrUnique;

    /**
     * 商品数量
     */
    private Integer cartNum;

    /**
     * 添加时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime addTime;

    /**
     * 0 = 未购买 1 = 已购买
     */
    private Boolean isPay;

    /**
     * 是否删除
     */
    private Boolean isDel;

    /**
     * 是否为立即购买
     */
    private Boolean isNew;

    /**
     * 拼团id
     */
    private Integer combinationId;

    /**
     * 秒杀产品ID
     */
    private Integer seckill_id;

    /**
     * 砍价id
     */
    private Integer bargainId;


}
